<!DOCTYPE html>
<html lang="en">


<head>
  <meta charset="UTF-8" />
  <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>Document</title>
  <style>
    * {
      margin: 0;
      padding: 0;
    }

    .box {
      position: relative;
      width: 300px;
      height: 170px;
      background-color: red;
      margin: 200px 20px;
      overflow: hidden;
    }

    .mohu {
      position: absolute;
      left: 0;
      top: -170px;
      transition: all 1s;
      opacity: 0.2;
    }

    .box:hover .mohu {
      top: 0;
      transition: all 2s;
      opacity: 1;
    }
  </style>
</head>

<body>
  <div class="box">
    <img src="./images/dwrg.jpg" alt="">
    <div class="mohu">
      <img src="./images/mask.png" alt="">
    </div>
  </div>
  <script>
    console.log("占剑我的偶像");
  </script>
</body>

</html>

<head>
  <meta charset="UTF-8" />
  <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>Document</title>
  <script src="./js/jquery-1.12.4.min.js"></script>
</head>

<body>
  <script>
    // 创建原生ajax
    $(function () {
      //创建原生ajax
      const xhr = new XMLHttpRequest();
      xhr.open("get", "http://127.0.0.1:3001/getHeroList");
      //开始监听
      //发送
    });
  </script>
</body>

</html>

